package com.tydic.common.core.enums;

/**
 * 用户类型
 *
 * @author hej
 * @version 1.0
 * @create 2023-08-18
 */
public enum UserTypeEnum {
    ROOT("root", "超级管理员"),
    ADMIN("admin", "管理员"),
    PLATFORM("platform", "平台运营"),

    BORDERER("borderer", "边民"),
    BORDERER_AGENT("borderer_agent", "边民代表"),

    ENTERPRISE("enterprise", "企业"),
    EMPLOYEE("employee", "企业员工"),
    NONE("none", "游客"),
    ;
    private String userType;
    private String description;

    UserTypeEnum(String userType, String description) {
        this.userType = userType;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public String getUserType() {
        return userType;
    }

    public boolean equalsType(String type) {
        return userType.equals(type);
    }
}
